escape for jinja2 custom filter