fix ipAddrToInternal() and ipAddrInternalToOriginal()