(hopefully) fixed quoting of regex
normalize for replacement string