properly escape unicode control characters

previously obfuscated code would produce invalid JSON containg
unescaped unicode control characters. This now escapes them correctly.
Merge pull request #102 from MindscapeHQ/unicode-control-character-escape

properly escape unicode control characters