enc accepts uint8