fixed undefined method each for ...:String - See http://www.ruby-forum.com/topic/207126#901608