Handle IPv6 addresses correctly in Profile-View.php