parse_binary - added binary mode when opening the file (fix for windows)