Use CHAR_BIT constant instead of hardcoded number of bits per byte.