Encode before building the file or folder name