encode forbidden characters in file names