program will now truncate the file name and append .huf and do a similar action for decoding