Fix test on 1.9.x by adding magic file encoding comment