[VMware] Fix problem transferring files with ipv6 host

Need to protect the host name with '[' and ']' before
we create a http/https connection

Fixes LP# 1224479

Change-Id: I8c2e58d3eb5e001eff3c9354c3cdc593469b23ac
Merge "[VMware] Fix problem transferring files with ipv6 host"