Kill utf8 and templatize type functions