Fix isutf8 to handle more than one malformed file.
Make indexing one-based.