Ruby 1.9+ requires each_line for String