title: NSString stringWithContentsOfFile failing with what seems to be the wrong error code
body: <p>I'm trying to load a file into a string. Here is the code I'm using:</p>
  
  <pre><code>NSError *error = nil;
  NSString *fullPath = [[NSBundle mainBundle] pathForResource:filename 
                                                       ofType:@"html"];
  NSString *text = [NSString stringWithContentsOfFile:fullPath 
                                             encoding:NSUTF8StringEncoding 
                                                error:&amp;error];
  </code></pre>
  
  <p>When passed in @"about" as the filename, it works absolutely fine, showing the code works. 
  When passed in @"eula" as the filename, it fails with 'Cocoa error 258', which translates to NSFileReadInvalidFileNameError. However, if I swap the contents of the files over but keep the names the same, the other file fails proving there is nothing wrong with the filename, it's something to do with the content.</p>
  
  <p>The about file is fairly simple HTML but the eula file is a massive mess exported from Word by the legal department.</p>
  
  <p>Does anyone know of anything inside a HTML file that could cause this error to be raised?</p>
  
  <p>Much thanks,</p>
  
  <p>Sam</p>