core (Templating): handle non-ASCII characters, use UTF-8