<p>I actually based what I did on the mediawiki code, but it seems that the <code>urlencode</code> function in PHP is stricter that ruby (it actually does form encoding - the <code>rawurlencode</code> function does actual URL escaping).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/issues/967#issuecomment-102415798">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLaBe6RpbkGQ3txnmamrQ0rgb3D0Uks5oJfw3gaJpZM4EZJ-Y.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/issues/967#issuecomment-102415798"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>