added additional check for max. ESSID length to prevent eventual crashes