Hack to get past Windows issue

Splunk opens stdin/stdout in text mode on Windows causing line ending problems. This change works around one such problem. We may have others. We'll see.
Test fix for Windows