encode/decode URI components for link facility