bits: fix for big-endian architectures.