fix Safari bug where fromCharCode cannot take more than 65536 arguments; reduce .length lookups for large strings
fix Safari bug where fromCharCode cannot take more than 65536 arguments; reduce .length lookups for large strings

hashcube/js.io,gameclosure/js.io,hashcube/js.io,gameclosure/js.io