Fix problems with very long filenames in both smbd and smbclient.