escape strings to use in regular expressions