add little ruby helper to convert uris to NMTOKEN, for XHTML compliant fragment identifiers. is there any browser that still relies on the <a name="foo"/> attribute? if so, it can be added back.