Replace huffman_writer with huffman_ostream