Turn method importing.ImportDialog._unicodeWarning() into a function.