keeping only required utf8 functions