Prevent control characters, such as Tab, in device IDs.