windows bugfix: read option file in binary mode

this ensures the bytes read equal the filesize on successful read