Fix ipv6 addresses on the way in and out of mongo (mgo)