StringStream::copyToStream() should adjust the offset