Added charset to scanner opening output files to make sure there are no charset issues on some OS.