title: Nokogiri, open-uri, and Unicode Characters
body: <p>I'm using Nokogiri and open-uri to grab the contents of the title tag on a webpage, but am having trouble with accented characters.  What's the best way to deal with these?  Here's what I'm doing:</p>
  
  <pre><code>require 'open-uri'
  require 'nokogiri'
  
  doc = Nokogiri::HTML(open(link))
  title = doc.at_css("title")
  </code></pre>
  
  <p>At this point, the title looks like this:</p>
  
  <blockquote>
    <p>Rag\303\271</p>
  </blockquote>
  
  <p>Instead of:</p>
  
  <blockquote>
    <p>Ragù</p>
  </blockquote>
  
  <p>How can I have nokogiri return the proper character (e.g. ù in this case)?</p>
  
  <p>Here's an example URL:</p>
  
  <p><a href="http://www.epicurious.com/recipes/food/views/Tagliatelle-with-Duck-Ragu-242037" rel="noreferrer">http://www.epicurious.com/recipes/food/views/Tagliatelle-with-Duck-Ragu-242037</a></p>