Currently, string encoding is all over the place for Puppet files, early code iterations use Encoding.UTF8, later ones use Encoding.ASCII.
To solve and improve this, add a Encoding (with Encoding.ASCII as a default) field to PETFile and pass the encoding to helpers where necessary.
Currently, string encoding is all over the place for Puppet files, early code iterations use
Encoding.UTF8, later ones useEncoding.ASCII.To solve and improve this, add a
Encoding(withEncoding.ASCIIas a default) field toPETFileand pass the encoding to helpers where necessary.