Bug 842214 - Replace JS_NewStringCopyN with JS_NewUCStringCopyN, or non-ascii chars would be shown incorrectly, r=gyeh