refactor for TS-PDU Encoder
refactor for TS-PDU Encoder