URLEncode means "encode this string for use in a url", not "encode this url"...
Another thing to consider with a function that does it for you is that you could end up encoding multiple times if you're not careful. All that said, though, if you're building the URL programmatically with string concatenation anyway, why's it any more difficult to wrap the bits in a UrlEncode() call?
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)