If the file name is too long, the server truncates it. But illegal characters appear before the hash (which is at the end). As a consequence, I cannot access such files through SAMBA or FTP directly. They just don’t show up. Windows OS does not understand this symbol! See screenshot.
Latest Server and Client versions installed. Server on Debian 9, Clients on Windows 10.