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