escape control characters
Merge pull request #123 from xuwei-k/escape-control-chars

escape control characters