KAA-280: Fix byte ordering in profile extension serialization