test encoding IPs in maps