debugged
Added backslash escapes for ASCII characters. Probably buggy.