fix - open file in binary mode - win ok