Encode paths as utf-8

Might not be the best fix, but this works for me.