Avoid escaping existing non-ascii characters in templates. [closes #278]