read mode r -> rb, might make a difference on win32