fix invalid base64 encoding, #16