I cannot reproduce this with: ruby 2.1.0dev (2013-03-18 trunk 39805)
[x86_64-linux]

$irb -ropen-uri
open("http://www.ruby-lang.org/") { |f| f.each_line { |line| p line } }

Could you try it without rails?