Make sure we pass parameters as binary on windows.

This fixes #320 (thanks @adamkerz).