escape strings for regular expressions