BUG-FIX: reading DM files in Windows was failing because the file was not open as a binary