I was confusing string substitution with regular expression subs where the backslashes are need.  Fixing it (and in another spot as well).