How can I convert special characters to normal characters in an URL query string? ? and = will be used as parts in my url. In generating the url, I use

&lt;?php echo l('node/'. $someID .'/delete?destination=chapter/'. $anotherID);?&gt;. When I check on Firebug, the href attribute of the link is not the usual url, instead of having ?, it is being replaced with %3F and = is being replaced with %3D. How do I fix this?
To generate URL we use url() function. l() function is used to generate a text with link. See the example below:

// Generate a Text with link
echo l('Link Text', 'node/' . $nid . '/delete', array('query' =&gt; array('destination' =&gt; 'chapter/' . $cnid)));

// Generate a Link.
echo url('node/' . $nid . '/delete', array('query' =&gt; array('destination' =&gt; 'chapter/' . $cnid)));