Fixed a bug with (binary) files being opened in ascii mode for some reason--I was sure I had fixed this once before