added escaping special characters in JSON strings for HTTP requests