Call nl_langinfo(CODESET) to get the name of the locale encoding on Unix