fix set_scheme for ipv6
dynamically generated Host header must use square brackets for ipv6 addresses (TSUN-272)