title: unexpected ':' AND unexpected ')' errors
body: <p>I'm running the following code in ruby version 1.8.7 </p>
  
  <pre><code>require 'csv'
  
  FILENAME = 'filename'
  
  cleansed_output = File.open('filename_cleaned.csv','wb')
  
  CSV.open(FILENAME, encoding: 'ISO8859-1') do |output|
    row_number = 1
    loop do
      begin
        break unless row = output.shift
        cleansed_output &lt;&lt; row.to_csv
      rescue CSV::MalformedCSVError =&gt; e
        puts "Malformed row #: #{row_number}"
      ensure
        puts "Row number: #{row_number}" if row_number % 10000 == 0
        row_number += 1
      end
    end
  end
  
  cleansed_output.close
  </code></pre>
  
  <p>and I'm getting the following errors:</p>
  
  <pre><code>csv_cleanser2.rb:7: syntax error, unexpected ':', expecting ')'
  CSV.open(FILENAME, encoding: 'ISO8859-1') do |output|
                              ^
  csv_cleanser2.rb:7: syntax error, unexpected ')', expecting $end
  CSV.open(FILENAME, encoding: 'ISO8859-1') do |output|
  </code></pre>
  
  <p>I'm trying to clean a csv with a broken delimiter. Anyone know what the problem is here?</p>
  
  <p>Thanks!</p>