Fixed UTF8 handling and sorting.