encode the list with no codec