JSON CGI: Fixed memory overwrite issue in string escaping.