presets: Fix encoding of env/penv macro expansion on Windows

Look up environment variables using a wide-character API on Windows,
and convert their value to our internal UTF-8 encoding.
1 file changed