More checks on device names, especially for IOS and IOU which forbid some characters.