encode uri for subscription