Add URI encode/decode functions