Format a byte as a binary string.
String toBin8(int value) => (value & 0xFF).toRadixString(2).padLeft(8, '0');