Make sure to use bytesize instead of size when writing data in the
MiniSSL's write.

@engine.write reports bytes written, not characters written.