open file as binary for windows compatibility