Determine the locale encoding