app now adds filename at the start of the encoding and the decoder finds it