handle non-ascii characters in directories