[server] Don't allow file/dir names longer than 255 bytes.