caif: add a sanity check to the tty name