Fix converting foldernames to tags during import.