re-structure to avoid #[cfg] on public functions …
also update the doc comment on `Url::to_file_path`.