The way to detect TLSSockets in node 0.12 and iojs has changed. You can just check `socket.encrypted` now :) Fixes #772