Fix a problem that file paths can be unicode

Fixes https://github.com/Tribler/tribler/issues/871