larger kludge for escaped characters

I'd be happy to do the more sensible version where just '\r' gets added :)