better handle special characters in file names