working on invalid escape chars