Fall back to stripping out newlines on Ruby 1.8.