fixed backslashes not getting escaped
added testJsonEscapeString for it