escape the escape characters for the regexp