Proper JSON string escaping.