title: base64 gives incorrect result
body: <p>Because I am setting up vnc server, I need to convert string to base64 to setup password. (<a href="https://askubuntu.com/a/12195">How to setup vnc password</a></p>
  
  <p>Say, if I want my password to be <code>qwerty</code>, I have to place the encoded string into the password into conf file.</p>
  
  <p>I see there is a <code>base64</code> utility in Ubuntu. <a href="https://linux.die.net/man/1/base64" rel="noreferrer">man base64</a>. <code>echo qwerty | base64</code> gives <code>cXdlcnR5Cg==</code>. But this doesn't work. </p>
  
  <p>But if I use the <a href="http://www.motobit.com/util/base64-decoder-encoder.asp" rel="noreferrer">online base 64 tool</a>. <code>qwerty</code> is encoded to <code>cXdlcnR5</code>. This string WILL WORK.</p>
  
  <p>Question: why the two base64 encode gives different result?</p>