You know that UTF8 "v" and ASCII "v" are both only 1 byte long, and the same byte value too. Why not just test that length == 1 and byte == (UTF8_v or 0x76)?