Fix absoluteURI functions to enable port redirection through NAT