Properly MIME-encode all headers.

Closes #6.