bits2bytes: fix invalid byte offset for some byt shifts