fix dollar signs in value replacement strings [closes #389]