Guess content-type by file extension.