Stats generation: Define encoding of the output files