SMB vs AFP folder names displayed differently

This is actually a feature from SMB called Mangling.

Problem: In 3945N LSS NAS Share, when accessing via smb a sub-folder name displays as: “1YKOMQ~H”, yet when accessing via AFP it displays correctly as “1989 Greece”. It only happens to some file names, and isn’t obviously related to spaces or hyphens. Other sub-folders in the same shared-folder might be correct as well.

Solution: If you have a space at the end of your file or folder name or if it finishes with a “.” (dot) or contain any forbidden character. Rename the file or folder to remove the trailing space. Refresh your SMB folder. The name should be correct now.