Fixed byte and bit offsets in encode kernel