The mechanism of thiazolium catalysis