Format a string to be used as an anchor tag (# bookmark) and set as the ID attibute of a HTML element
<p>I need to convert strings with non-url safe characters (examples include ', ", &amp; and accented letters in spanish / french / german) into a format that will work as an anchor in a URL</p>

<p>e.g. www.site.com#<strong>anchor</strong></p>

<p>I have tried HttpUtility.HtmlAttributeEncode(s) and HttpUtility.UrlEncode(s) - they work as billed but they do not result in an anchor string that actually works correctly (testing in Firefox)</p>

<p>At the moment I am replacing out the offending characters to get it to work but I thought there must be a more generic method to use for this purpose.</p>
