handle charset when sniffing `Content-Type` of a resource