Check for invalid UTF-8 encodings, and report errors to the user