title: embedded nul in string importing raw data of Content-Type: text/tab-separated-values; charset=utf-16le
body: <p>Using httr to obtain a report from site using oath2.0 I am unable to convert the raw content into a character set within R.</p>
  
  <pre><code> &gt; req &lt;-GET("https://www.blah.com/blah/v2/blah", config(token = token))
  </code></pre>
  
  <p>My response indicates no issue:</p>
  
  <pre><code> Response [https://www.blah.com/blah/v2/blah]
   Date: 2018-09-21 15:55
   Status: 200
   Content-Type: text/tab-separated-values; charset=utf-16le
   Size: 21.1 MB
  NA
  </code></pre>
  
  <p>When attempting to convert my raw data to char I get:</p>
  
  <pre><code>&gt; rawToChar(req$content)
  Error in rawToChar(req$content) : 
  embedded nul in string:
  </code></pre>
  
  <p>I also obtain the following error when checking content via content():</p>
  
  <pre><code>&gt; content(req)
  Error in guess_header_(datasource, tokenizer, locale) :
  Incomplete multibyte sequence
  </code></pre>
  
  <p>Any thoughts? I've found limited resources on this on the web...</p>