title: how to convert stringWithUTF8String to swift
body: <pre><code>-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
  {
      NSString *str = [NSString stringWithUTF8String:data.bytes];
      NSLog(@"%@",str);
  }
  </code></pre>
  
  <p>Please convert this objective c function in swift</p>