Sounds like a symptom of sinusitis, dysosmia - the medical word for bad odor in taste or smell. Anything that dries out your sinus (dehydration, Benedryl, mouth breathing) can make the smell worse.
My goodness, what did you do about the tapeworm?!
Could whatever treatment you received cause this as a side effect?