Add missing encoding conversion