Fix UTF-8 validation

The bit shifting was off by six bits, resulting in
utter nonsense.