b_stream can now read/write utf-8 encoded data, and will do so unless the stream is in binary mode. b_stream will also report an error it encounters invalid utf-8 data (unless binary mode is enabled).