Puppet - after upgrading to puppet agent 8.10, every run logged "Could not prefetch chocolateyfeature".

## The fix

If puppet agent 8.9+ logs prefetch failures for the chocolatey provider, check your chocolatey.config encoding and your Windows code page. The file is UTF-8 with a BOM, and newer REXML mishandles the BOM when the provider reads it via File.read under a non-UTF8 code page. The fix is in the puppetlabs-chocolatey module: read the config with File.open instead of File.read (upstream: ruby/rexml#231). Until your module version includes it, patching that one read call is the workaround reporters confirmed works.

Thread: gh:puppetlabs/puppet#9532