enable JS_SetCStringsAreUTF8 to prevent encoding issues