This generator hook will help you fix broken encoding when you generated some non HTML text file (i.e. xml, json…)