dup-read-rewind does not rewind original in ruby1.8, check not closed