Fix an error when loading files from non-ASCII path names.

Closes #71. The problem affected files referenced from the Qt
interface. Converting QString to unicode solves it.