fix channel and hybridconnector encode bugs