support new url.parse() behavior