Fixes escaping of single quotes in Ruby 1.9