Fall back to stripping out newlines on Ruby 1.8.
Merge pull request #34 from Umofomia/master

Fall back to stripping out newlines on Ruby 1.8.