Fixed incorrect serialization of IPv6 addresses