These updates aren't really what's required - this function needs to be updated to do things taking into account Unicode - and build a StringRef to send with the menuPick message.