Encode files based on the Huffman Compression