Exported function ExtractCountryCode.