Changed sslstream to use string instead of file