Fix implicit CR/LF layer on Win32 messing up tell(). Closes #289

Attempted fix at #289. 

@wchristian , if you get time, would you be able to confirm this patch fixes Win32's test suite?