Fix issue with multiple selection in Config->Sorting.

'platform_encode' crashed on lists.