Fixed up base64_dump() users and interfaces to fix memory leaks