Convert characters in SMART manifest id if not legal in XML tag name.