Make sure we pass parameters as binary on windows.

This fixes #320 (thanks @adamkerz).
Changelog re #320

Closes #409