tweak escape chars a bit