pub(crate) fn file_url_segments_to_pathbuf( estimated_capacity: usize, host: Option<&str>, segments: Split<'_, char>, ) -> Result<PathBuf, ()>