encode mail filenames