Use JS_EncodeStringToUTF8 for JSStringWrapper