1-to-8-bit conversion