Implement parsing of escape characters