Make the text replace message safe for preg_replace