patch to uri encoding