[minor] Encode and decode uri components for querystrings