Optimize is_utf8

Manually unroll the multibyte loops, and optimize for the single
byte chars.