Prevent regex characters in text replacement strings