replace $ by \$

Port from administration repo
cc @DeepDiver1975