Revamped URL encode by using new iOS7 APIs. Also updated syntax.