Fix encoding of strings from getJavaScriptStrings

Fix for bug http://www.concrete5.org/developers/bugs/5-6-2-1/strings-break-from-getjavascriptstrings-to-ccm_t-if-they-include/