minor clean up
append char instead of String
Target JDK7, use getHostString instead of getHostName, close #672