HomeWildfire Games

Fix conversion of UTF8 strings between the scripts and the engine.

Description

Fix conversion of UTF8 strings between the scripts and the engine.

SpiderMonkey uses UTF16 internally, and only provides APIs for that encoding, so stop hacking UTF8 strings: properly convert them to and from UTF16 when passing them through SM.

Patch By: wraitii
Differential Revision: https://code.wildfiregames.com/D2838