Fixed an encoding problem on email upload

The Net::SFTP gem uses ASCII-8BIT when uploading ascii files.  If the email contained UTF-8 characters, the upload would fail.  Instead, the email is written to a stringio buffer and that is binary uploaded to the server which honors encoding.