Include the full path part of the URL in a file name.

A host part is sometimes not enough to guess a proper major mode for editing the text.

With this patch, you can, for example, configure your text editor to set its editing mode for Wiki markup if the file name has /wiki/ (actually escaped as "%2Fwiki%2F") in it.