Trying to use the user locale's encoding that is UTF-8 doesn't make much sense if we already know that it fail as we failed the looks_utf8() check above. I've changed the logic to fallback to ISO8859-1 instead as it seems to be the most widely used single byte locale:
- Check for valid UTF-8.
- Check if fallback fileencoding is set and is NOT UTF-8.
- Check if user locale's encoding is NOT UTF-8.
- Use ISO8859-1 as last resort.
Triggered by a question from Ronald F. Guilmette on questions@.