fix(node): validate Brotli encoder operations (#36530)