Escape single- and double-quotes in JSON strings, similar to treatment of < and >