encode to binary before writing with ssl socket
follow changes in ruby/ruby@65ca601
Merge pull request #189 from eitoball/encode_to_binary_before_writing_with_ssl_socket

Encode to binary before writing with OpenSSL::SSL::SSLSocket