Attempt to fix crash for unicode SSIDs (not tested)