fix .cpg file contents
Merge pull request #566 from minorua/fix_cpg

Encoding: produce more compatible .cpg files.