allow input_iterator type input for encoding huffman gap files