Translate UTF-8 to UTF-16 for SSL connections. Fixes encoding issues.

This is a simple addition that converts the UTF-8 string that we get from servers to UTF-16. This fixes a bug that broke unicode characters for SSL servers.  

Non SSL servers are not affected by this bug.