Fix attribute name validation used for daemon statitics code.

canStringBeUsedAsAttr() doesn't check that the first character isn't a
digit. Use IsValidAttrName() instead, which does check.
Also add note for cleanStringForUseAsAttr().