Handling Emotions in Human-Computer Dialogues