properly escape sequences of invisible characters

fixes #1
Merge pull request #2 from martinleopold/patch-1

properly escape sequences of invisible characters