Modify escaping sequences for encoding

I think this one is better.