title: NSString encoding returns nil on url content
body: <p>I'm following an iOS Swift guide on Udemy and this is the first issue I cannot work around:</p>
  
  <p>I am supposed to see html etc printed to the console but instead I get null.</p>
  
  <p>This is the section:</p>
  
  <pre><code>    let url = NSURL(string: "https://google.com")
      let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {
          (data, response, error) in
          if error == nil {
              var urlContent = NSString(data: data!, encoding: NSUTF8StringEncoding)
              print(urlContent)
          }
      } 
      task.resume()
  </code></pre>
  
  <p>If I print just the data then it gives me some content back but when its encoded its nil.</p>
  
  <p>Any help? Cannot move onto the next part until this is resolved.</p>