email subject: strip leading and trailing newlines

Error was:

  Header values can't contain newlines
  (got u'Your invitation is ready\n'
  for header u'Subject')
Merge branch 'strip_email_subject'