self.template = Template(self.getTemplate(), lookup=mylookup,
    module_directory=tempfile.gettempdir(), input_encoding='utf-16',
    output_encoding='utf-16', encoding_errors='replace')
how to deal with unicode in mako?