fix escaping of double quote markup in legacy up_json_encode function