Don't try to re-encode a string unless it fails. When attempting to
re-encode first guess what the encoding might be, decode, then encode.
Merge pull request #346 from reciprocity/feature/import-fix

56841996 Only attempt to re-encode the lines of the imported CSV file when a