Fixed Read and Write methods of Raw in- and output streams.