fix for wrapping non-string sockets with quotes