recognize escape characters

from a Twitter suggestion