Fixed UTF-8 encoding crash in web module

This commit addressed the issue in the SMTP module:
https://github.com/sendgrid/sendgrid-python/commit/66a34c7c50033c7fdb704efad7d23fd5cd20c4e3

So here's one to address it in the Web module.