Switch old encoding API to new packet/frame system.