Magic incantation to put stdin and stdout into binary modes on Windows... We'll see whether it works.