fix: encode empty lists