Fix to handle scenario when there is only one student.
Escape some special characters that caused sending mail
to fail.
Merge pull request #1 from romanhg/master

Handle one student scenario and a couple of encoding errors