ensure characters aren't lost after dollar signs