The name `type` was confusing, since we usually use that in other ways. Also updated the relating comments.
chardet
charset_normalizer