Sanitize the tag names