slapos.slap: parse ipv6 and adds bracket s if missing.

Needed for requests, that now NEEDS brackets for ipv6.
slapos.slap: cast xml from unicode to string if it is unicode.