fix signature and test for utf8 functions