When base64 encoding, output buffer should be 3 bytes.