Make sure we pass parameters as binary on windows.

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

Closes #409
Merge branch '1.13' into 1.14