Don't trust mime.TypeByExtension for the easy stuff (fixes #598)