Determine the locale encoding
