support encoding lists