String escape / unescape

Escape text into a JSON/JavaScript string literal, or turn an escaped literal back into readable text.