fix unseekable streams copying in RubyIO.java