convert filepath to unicode using file system encoding

Fix #871