fixes #4245 'New window' button for SPICE console does not work

With to_s this is returning something like '#<Net::HTTPOK:0x007fbd31708f28>' instead of the cert and the connection fails when using the 'New window' button.