Fixed unicode path issues for both python 2 and 3, closes #368