Putting back jRuby patch for IO.copy_stream situation while sorted out.