Escape escape chars in templates