Use mkpath to create parent folders if needed, prevents segfaults
Use encoding detector before loading data
Merge pull request #56 from fdelapena/master

Fix mkdir crash and use encoding detector for project import