using std::ios::binary for binary streams

see #54