Handle wrong UTF8 encodings gracefully