use binmode to keep CRLF correctly

binmode is required to keep CRLF under Win32.