guard IO#read spec with ruby_bug
set an IO objects' internal_encoding correctly