Strips control characters and trims a client-supplied device label to a length safe to render in the sessions list.
Untrusted device_name parameter; empty when the app sent none.
device_name
A printable label, falling back to DEFAULT_DEVICE_NAME.
Strips control characters and trims a client-supplied device label to a length safe to render in the sessions list.