Return the charset that the user is likely using, according to the system configuration.
locale/getpreferredencoding
getpreferredencoding