Added proper unicode support

Fixes issue when using unicode path names.
Adds further unit tests for unicode names.