Fix escapeJSON to work the same for both string and string16 and to handle escaping of 0x00-0x1f.
Fix escapeJSON to work the same for both string and string16 and to handle escaping of 0x00-0x1f.

bobjervis/parasol,bobjervis/parasol,bobjervis/parasol,bobjervis/parasol