Guess the mimetype of a file.