enhanced MIME types detection, including UTF-8 flag for pure text content