title: Unimplemented type list when trying to write.table
body: <p>I have the following data.table (data.frame) called output:</p>
  
  <pre><code>&gt; head(output)
          Id                                           Title IsProhibited
  1 10000074                             Renault Logan, 2005            0
  2 10000124              Ñêëàäñêîå ïîìåùåíèå, 345 ì&lt;U+00B2&gt;            0
  3 10000175                                          Ñó-øåô            0
  4 10000196             3-ê êâàðòèðà, 64 ì&lt;U+00B2&gt;, 3/5 ýò.            0
  5 10000387        Samsung galaxy S4 mini GT-I9190 (÷¸ðíûé)            0
  6 10000395 Êàðòèíà ""Êðûì. Ïîñåëîê Àðîìàò"" (õîëñò, ìàñëî)            0
  </code></pre>
  
  <p>I am trying to export it to a CSV like so:</p>
  
  <pre><code>&gt; write.table(output, 'output.csv', sep = ',', row.names = FALSE, append = T)
  </code></pre>
  
  <p>However, when doing so I get the following error:</p>
  
  <pre><code>Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol,  : 
  unimplemented type 'list' in 'EncodeElement'
  In addition: Warning message:
  In write.table(output, "output.csv", sep = ",", row.names = FALSE,  :
    appending column names to file
  </code></pre>
  
  <p>I have tried converting the <code>Title</code> to a string so that it is no longer of type <code>list</code> like so:</p>
  
  <pre><code>toString(output$Title)
  </code></pre>
  
  <p>But, I get the same error.  My types are:</p>
  
  <pre><code>&gt; class(output)
  [1] "data.frame"
  &gt; class(output$Id)
  [1] "integer"
  &gt; class(output$Title)
  [1] "list"
  &gt; class(output$IsProhibited)
  [1] "factor"
  </code></pre>
  
  <p>Can anyone tell me how I can export my data.frame to CSV?</p>
  
  <p>Another strange thing that I've noticed, is that if I write <code>head(output)</code> my text is not encoded properly (as shown above) whereas if I simply write <code>output$Title[0:3]</code> it will display the text correctly like so:</p>
  
  <pre><code>&gt; output$Title[0:3]
  [[1]]
  [1] "Renault Logan, 2005"
  
  [[2]]
  [1] "Складское помещение, 345 м²"
  
  [[3]]
  [1] "Су-шеф"
  </code></pre>
  
  <p>Any ideas regarding that?  Is it relevant to my initial problem?</p>
  
  <p><strong>Edit:</strong> Here is my new output:</p>
  
  <pre><code>Id  Title   IsProhibited    
  10000074    Renault Logan, 2005 0   
  10000124    Ð¡ÐºÐ»Ð°Ð´ÑÐºÐ¾Ðµ Ð¿Ð¾Ð¼ÐµÑ‰ÐµÐ½Ð¸Ðµ, 345 Ð¼&lt;U+00B2&gt;    0   
  10000175    Ð¡Ñƒ-ÑˆÐµÑ„ 0   
  10000196    3-Ðº ÐºÐ²Ð°Ñ€Ñ‚Ð¸Ñ€Ð°, 64 Ð¼&lt;U+00B2&gt;, 3/5 ÑÑ‚.  0   
  10000387    Samsung galaxy S4 mini GT-I9190 (Ñ‡Ñ‘Ñ€Ð½Ñ‹Ð¹)  0   
  10000395    ÐšÐ°Ñ€Ñ‚Ð¸Ð½Ð° \\"ÐšÑ€Ñ‹Ð¼. ÐŸÐ¾ÑÐµÐ»Ð¾Ðº ÐÑ€Ð¾Ð¼Ð°Ñ‚\"\" (Ñ…Ð¾Ð»ÑÑ‚     Ð¼Ð°ÑÐ»Ð¾)"    0
  10000594    ÐšÐ°Ð»ÑŒÑÐ½ 25 ÑÐ¼  0   
  10000612    1-Ðº ÐºÐ²Ð°Ñ€Ñ‚Ð¸Ñ€Ð°, 45 Ð¼&lt;U+00B2&gt;, 6/17 ÑÑ‚. 0   
  10000816    Ð“Ð°Ñ€Ð°Ð¶, 18 Ð¼&lt;U+00B2&gt;   0   
  10000831    ÐŸÐ»Ð°Ñ‚ÑŒÐµ    0   
  10000930    ÐšÐ°Ñ€Ð±ÑŽÑ€Ð°Ñ‚Ð¾Ñ€Ñ‹ Ðš-22Ð˜, Ðš-22Ð“ Ð¾Ñ‚ Ð³Ð°Ð· 21 Ð¸ Ð³Ð°Ð· 51 0   
  </code></pre>
  
  <p>Notice how line ID 10000395 is messed up?  It seems to contains quotes of it's own which are messing up the CSV.  How can I fix that?</p>