Properly escape the ETX special character in alternate_json_encode

When a json string contains the [ETX](http://en.wikipedia.org/wiki/End-of-text_character) special character, ```alternate_json_encode``` breaks. This branch fixes that issue, by properly escaping that character.