Fix geoip encoding issues