test non-UTF-8 encodings for Mako templates
add support for Jinja2