sanitizeId

Sanitizes a string for use as an HTML element id attribute.