title: Twig: url encoded twice while passing it to Twitter share button
body: <p>I'm developing a simple page with Symfony2, using Twig as template engine.</p>
  
  <p>I have a list of urls, and I'd like to add the Twitter share button for each url. What I do is a simple cycle on the urls array, and the dinaycally set the url for every Twitter button inside the cycle. It looks like that twig encodes the url at first, and the Twitter script encodes it again. So The Twitter share count doesn't match. The code (inside the cycle) is the following, there is another part of Twitter code at the end of the page:</p>
  
  <pre><code>&lt;a href="https://twitter.com/share" class="twitter-share-button" data-url="{{ s.url }}"&gt;Tweet&lt;/a&gt;
  </code></pre>
  
  <p>The url I get on the rendered page is: <code>http%253A%252F%252Fwww.example.com%252F</code> (two encoding pass)
  instead of <code>http%3A%2F%2Fwww.example.com%2F</code> (one encoding pass, correct). It looks like the <code>%</code> is encoded again to <code>%25</code>.</p>
  
  <p>And this doesn't make Twitter count work, because it consider those two as different urls.</p>
  
  <p>I also tried to use some filters, e.g. <code>{{ s.url|raw }}</code>, but it didn't work.</p>
  
  <p>So my question is: how to avoid this? Is there a way to tell twig (or twitter) to not encode the url?</p>