title: YAML: error parsing a string with escaped double quote
body: <p>Ruby 2.0, Yaml using Psych seems to have trouble escaping double quotes. Anyone have an idea on resolving this?</p>
  
  <pre><code>data_ =&lt;&lt;END_
  description: "Acme acquires ILM: Lucas says \"Inevitable!\""
  END_
  
  ap YAML.load(data_)
  </code></pre>
  
  <p>produces</p>
  
  <pre><code>    /Users/x/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:in `parse': (&lt;unknown&gt;): did not find expected key while parsing a block mapping at line 1 column 1 (Psych::SyntaxError)    
  </code></pre>
  
  <p>Escaping the entry with single quotes works, but if it contains single quotes, escaping them results in an error, too.</p>
  
  <pre><code>description: 'Acme acquires ILM: Lucas says "It\'s Inevitable!"'
  </code></pre>
  
  <p>In an ideal world, the entries would contain proper unicode typographical quotes, but I don't have control over these (although I could replace them before processing with YAML)... </p>
  
  <p>Any ideas on having YAML parse this properly?</p>
  
  <p>Update: answering my question. Found out that it is possible to escape a single quote by duplicating it, so this works:</p>
  
  <pre><code>description: 'Acme acquires ILM: Lucas says "It''s Inevitable!"'
  </code></pre>
  
  <p>I discovered this by using YAML.dump(the-desired-string)</p>