Replace Java 7 getHostString with a static utility method in ServerUtil