Escape JSON String to avoid MalformedJsonException.