Overhaul of all formats that use base64decode(). It adds a NULL
string terminator that the destination buffer must be sized for.