GLM formulas do not have to be escaped anymore

Forward port of 1149448ea5b40aaf1cafbd0a3d42efa658aa0102
ref: #8143