Message
Invalid counry code: "foo
"
Explanation
The only acceptable values are ISO 3166 country codes..
Solution
Consult the ISO documentation for further details.
Not clear? Disagree?
You might be able to find help in one of these fine resources.