Fix Huffman encoding size calculation.