Text this: Chern-Weil global symmetries and how quantum gravity avoids them