pub fn has_valid_extension(filename: &str) -> bool
Check if a filename has a valid extension (non-empty and alphanumeric).