Much as been said of Potassium Perchlorate and its alleged use in Pyrodex so I did some digging on the web.
It turns out that Potassium Perchlorate is one of several oxidizers used in the explosives industry.
I found no direct link with Potassium Perchlorate and thyroid problems except that it was once used to treat some thyroid problems. That use has been discontinued because of some persons reaction to it.
Aluminum Perchlorate has been linked to blocking Iodine absorption but it should be noted that this happens when you eat it.
Aluminum Perchlorate by the way is the oxidizer used in the Space Shuttle Solid Boosters.
When used in this application it turns into Aluminum Chloride, one of the main ingredients in your under arm anti-perspiration products.
I have no idea what Potassium Perchlorate turns into when ignited in a black powder gun shooting Pyrodex, assuming that it is even one of the ingredients that go into making Pyrodex.
It should be noted that Potassium Perchlorate has not been subjected to California's dangerous chemical ratings although they did study it.
Anyway, to be on the safe side, if you own or shoot any Pyrodex DO NOT EAT IT. You may be one of the people who has a bad reaction to it.