JSON: fix escape of '"' and '\' characters