Fixed getMimetype for filetypes with more than 3 characters