windows standard io fix for binary data