support for json and string escapes