add muilt encoding support