fix character escaping in templates.