IO.copy_stream needs to dig out write IO if present.