Consistent BinaryEncoder null checks