fixed unicode error in TemplateHandler.py as well