Fix direct file links

This only urlencodes the file components, not the directory separators. We had needed this to properly browse.