Fixed length error in raw_out_stream.
wip