pub fn to_filename(path: impl AsRef<Path>) -> Result<String, Error>