Fix invalid UTF-8 trimming in "recent collections"