Participation of an intermediate sulfoxide in the enzymatic thiolation of the imidazole ring of hercynine to form ergothioneine.