Encode filename to filesystem encoding