fixes #2656 error connecting to vsphere after upgrade to ruby 1.9.3

replaces #714