gpgme-tool: Use membuf functions to build up strings.