Fix byte encoding assignment