title: NodeJS UTF8 Encoding A Buffer Then Decoding That UTF8 String Produces A Buffer With Different Content
body: <p>I typed this into the nodejs console</p>
  
  <pre><code>new Buffer(new Buffer([0xde]).toString('utf8'), 'utf8')
  </code></pre>
  
  <p>and it prints out</p>
  
  <pre><code>&lt;Buffer ef bf bd&gt;
  </code></pre>
  
  <p>After looking at the <a href="http://nodejs.org/api/buffer.html#buffer_buffer" rel="nofollow">docs</a>
  it seems that this would produce an identical buffer. I'm creating a utf8 encoded string from a buffer whose contents consist of one byte (0xde) then using that utf8 encoded string to create a buffer. Am I missing something here?</p>