mako templates: add encoding headers so special characters don't break the site