Fixing unicode issues in text importer. Closes #224.