Use bone names to prevent duplicate names for attachments in most situations.
Use the UniqueNameFinder class to determine unique bone names too.