country name also needs to be encoded.