Here's a convenience String extension that will return a URL-encoded string based on the current string.
You can find the code for my extension on Github