title: Bad encoding for messages with Content-Transfer-Encoding: binary
body: <p>I use</p>
  
  <pre><code>   const IMAP = require('imap');
     const simpleParser = require('mailparser').simpleParser;
  
   f.on('message', (messageSource, seqno) =&gt; {
  
                  let message = {
                      seqno: seqno,
                      attributes: null,
                      body: null
                  };
  
                  //Fired if options "bodies" is set
                  messageSource.on('body', (stream) =&gt; {
  
                      let buffer = '';
  
                      stream.on('data', (chunk) =&gt; {
                          buffer += chunk.toString('utf8');
                      });
  
                      stream.on('end', () =&gt; {
                          message.body = buffer;
                      });
  
                  });
  
                  messageSource.once('attributes', (attributes) =&gt; {
                      message.attributes = attributes;
                  });
  
                  messageSource.once('end', () =&gt; {
                      messages.push(message);
                  });
  
              });
  </code></pre>
  
  <p>Incoming emails that have content-Transfer-Encoding: binary
  Cyrillic is not displayed well</p>
  
  <p>пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ!</p>