Set tempfile file handle to binmode to prevent corruption problems on Windows
Set tempfile file handle to binmode to prevent corruption problems on Windows

Pmovil/puppet-remote_file,lwf/puppet-remote_file