When browsing a share using SMB, some folders or files may show with a different name than expected, instead appearing with a short alphanumeric string, typically with a tilde (~) in the title. An example file name may be something like
The cause for this is that this file was saved using AFP (Apple Filing Protocol) and the name includes a special character that is supported by AFP but prohibited by SMB.
We can manually toggle this expected behavior for SMB, but while it will then show the original file names, Windows machines will still not work with these files; NTFS (Windows file system) does not allow the following characters: / ? < > \ : * | " or any character you can type with the Option key.
Rather than disabling the name mangling, we'd recommend avoiding special characters when using AFP.
Additionally, we do recommend choosing to allow only one of these two NAS protocols in cross-platform environments — Mac operating systems can use SMB as well as AFP, while Windows machines are only capable of using SMB.