Add boundary checking to utf8toknizer.