Assume the system encoding is UTF-8 if it can't be detected
Add warning when the system encoding can't be detected