Do not use #each_with_object

Ruby 1.8.x does not have #each_with_object; Ruby 1.9+ does.