Use getHostName instead of getHostString for JDK5 compat