Updated patch for escape problem

Updated patch for escape issue- used url escape in place of regex escape