Thanks for the base64 bug report and patch; I applied it, adding a bit to the comment; see:
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=08c11765d4fe790403229496a8a3ec625a3ca5af As for the base32 part, would you be willing to assign the copyright to the Free Software Foundation, so that we could install it in gnulib?