pub fn filename_from_uri(uri: &str) -> Result<(PathBuf, Option<GString>), Error>