Gracefully handle non-unicode chars in path names