Swift String Extension for URL Encoding

This post may be out of date, you should verify the content before use

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