Optimize is_utf8

This function just needs to check if the utf-8 is well formed enough
that we can iterate through it correctly.  Also, optimize for single
byte chars.