Fixed wrong mime detection by large letters