FIX for issue 446. Changed from 'each' to 'each_line' because ruby 1.9.x
no longer has 'each' for Strings.
Merge pull request #952 from umsmit32/issue-446

FIX for issue 446. 'each' for Strings undefined in ruby 1.9
Closes #446