title: Spreadsheet_Excel_Writer data output is damaged
body: <p>I use Spreadsheet_Excel_Writer to generate .xls file and it works fine until I have to deal with a large amount of data. On certain stage it just writes some nonsense chars and quits filling certain columns. However some columns are field up to the end (generally numeric data)</p>
  
  <p>I'm not quite sure how the xls document is formed: row by row, or col by col... Also it is obviously not an error in a string, because when i cut out some data, the error appears a little bit further. </p>
  
  <p>I think there is no need in all of my code</p>
  
  <p>here are some essentials</p>
  
  <pre><code>$filename = 'file.xls';
  $workbook = &amp; new Spreadsheet_Excel_Writer(); 
  $workbook-&gt;setVersion(8); 
  $contents =&amp; $workbook-&gt;addWorksheet('Logistics');
  $contents-&gt;setInputEncoding('UTF-8');
  
  $workbook-&gt;send($filename);
  
  //here is the part where I write data down
  $contents-&gt;write(0, 0, 'Field A');
  $contents-&gt;write(0, 1, 'Field B');
  $contents-&gt;write(0, 2, 'Field C');
  
  $ROW=1;
  foreach($ordersArr as $key=&gt;$val){
    $contents-&gt;write($ROW, 0, $val['a']);
    $contents-&gt;write($ROW, 1, $val['b']);
    $contents-&gt;write($ROW, 2, $val['c']);
  
    $ROW++;
  }
  $workbook-&gt;close(); 
  </code></pre>