PathUtil.encode(myHost, sb);
sb.append(PathUtil.encode(myHost));
    public String toString() {        if (myAsString != null) {            return myAsString;        }        StringBuffer sb = new StringBuffer();        sb.append(myProtocol);        sb.append("://");        PathUtil.encode(myHost, sb);        if (myPort != getDefaultPort(myProtocol)) {            sb.append(':');            sb.append(myPort);        }        for(StringTokenizer tokens = new StringTokenizer(myPath, "/"); tokens.hasMoreTokens();) {            sb.append("/");            PathUtil.encode(tokens.nextToken(), sb);        }        myAsString = sb.toString();        return sb.toString();    }