In Base64 encoding, if result ends in \n, remove it. (Fixes #79, #105)