Make to_url public for rustc