It seems he did extensive background research to investigate and find optimal solution for this issue: https://hsivonen.fi/chardetng/
Goal was apparently to bring FF to feature parity with Chrome. Sad to see it's not working as well as intended. (Even sadder to see his person being attacked by some commenters below.)