prevent wifi data with too long keys from being saved