[posixdirectory] convert non-utf8 file names to utf-8

thanks @notspiff