Ensure the javascript is sent in UTF-8.
Fixed bug where \ wasn't correctly escaped.