Fixed conversion of IPv6 to ServerHostname

The IPv6 address string was not properly terminated.