bugfix when changing escape characters