fix an edge case with LazyCorpusLoader._unload
Fix more encoding issues (see #299)