If I use this to set up NSData then the writeData method crashes. 

```
   NSString *test = @"The quick brown fox jumped over the lazy dog\r\n";
   NSData *data = [test dataUsingEncoding:NSUTF8StringEncoding];

   [asyncSocket writeData:data withTimeout:10 tag:4];

```

However if I use this one then it works... but I need the NSString so I can enter a formatted string to send...

```
 char bytes[] = "The quick brown fox jumped over the lazy dog\r\n";
 NSData* data = [[NSData alloc] initWithBytes:bytes length:sizeof(bytes)];

 [asyncSocket writeData:data withTimeout:10 tag:4];

```

So what did I do wrong?