pub fn from_extension(ext: &str) -> Option<Format>
Map a file extension (with or without the dot, any case) to a format.