title: decode base64: invalid input
body: <p>Trying to decode base64 file on GNU/Linux, I get "base64: invalid input".</p>
  
  <pre><code>$ base64 test.zip | base64 -d &gt; test2.zip
  base64: invalid input
  $ ll test*
  -rw-r--r-- 1 user grp 152 19 11:41 test.zip
  -rw-r--r-- 1 user grp  57 19 11:42 test2.zip
  </code></pre>
  
  <p>I tried <a href="http://www.xinotes.org/notes/note/1376/" rel="noreferrer">dos2unix</a> command, but it did not help.</p>
  
  <p>My base64 version:</p>
  
  <pre><code>$ base64 --version
  base64 (GNU coreutils) 5.97
  Copyright (C) 2006 Free Software Foundation, Inc.
  This is free software.  You may redistribute copies of it under the terms of
  the GNU General Public License &lt;http://www.gnu.org/licenses/gpl.html&gt;.
  There is NO WARRANTY, to the extent permitted by law.
  
  Written by Simon Josefsson.
  </code></pre>