Add our own urlencode for jinja2 < 2.7 installations