title: NSURL URLWithString:myString returns Nil?
body: <p>I have a string of my url.. I want to get data from that url. For that I needs to create object of <code>NSURL</code>. The problem is while I try <code>URLWithString</code> method of NSURL class it returns nil. But when I opens this link in Safari of My Mac it display me the Image.</p>
  
  <p>I am using ..</p>
  
  <pre><code>NSString *str = @"http://chart.apis.google.com/chart?chs=150x150&amp;cht=qr&amp;chld=L|0&amp;chl=http://MyServer.com/shareMyCard.php?value=1304057103";
  NSURL *url = [NSURL URLWithString:str];
  NSData *data = [NSData dataWithContentsOfURL:url];
  UIImage *img = [UIImage imageWithData:data];
  </code></pre>
  
  <p>I don't know why the URL is Nil. I think because of query string in my string.</p>
  
  <p>Any Idea how to get data from this Url String.</p>
  
  <p>Thanks</p>