Ok, you specifically need to determine between plain ascii and utf8 here, which IsUTF8() cannot do.