title: NSURLErrorDomain code = -1002 despite escaping restricted chars
body: <p>I have the following request code written (using the SwiftHTTP library)</p>
  
  <pre><code>func performTagRequest(detail : String){
      var request = HTTPTask()
      var formattedDetail = detail.stringByReplacingOccurrencesOfString("\"", withString: "", options: NSStringCompareOptions.LiteralSearch, range: nil)
      var url = "www.gifbase.com/tag/\(formattedDetail)?format=json"
  
      url = url.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!
      println(url)
      request.GET(url, parameters: nil, success: {(response: HTTPResponse) in
      if response.responseObject != nil {
          let data = response.responseObject as NSData
          let str = NSString(data: data, encoding: NSUTF8StringEncoding)!
          let gifMetaArray = str.componentsSeparatedByString(",") as [String]
          //println("response: \(gifMetaArray))") //prints the HTML of the page
      }
      },failure: {(error: (NSError, HTTPResponse?)) in
          println("error: \(error)")
      })
  }
  </code></pre>
  
  <p>that returns a valid response in browser (<a href="http://www.gifbase.com/tag/10thingsihateaboutyou?format=json" rel="nofollow">ex for "10thingsihateaboutyou"</a>) but returns the error </p>
  
  <pre><code>error: (Error Domain=NSURLErrorDomain Code=-1002 "The operation couldn’t be completed. 
  (NSURLErrorDomain error -1002.)" UserInfo=0x7ff22947b640 
  {NSErrorFailingURLStringKey=www.gifbase.com/tag/10thingsihateaboutyou?format=json, 
  NSUnderlyingError=0x7ff22940d550 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork
  error -1002.)", NSErrorFailingURLKey=www.gifbase.com/tag/10thingsihateaboutyou?format=json}, nil)
  </code></pre>
  
  <p>I found that error -1002 is <code>NSURLErrorUnsupportedURL</code> and can be caused by not properly escaping characters, but the line above my print should do that I believe. </p>
  
  <p>Anyone have any experience with this?</p>