encode the file use hafuman