Fix byte conversions.