support rewrite host for url.URL