Url.getRoot() with port fix