Filter out brackets in host resolution (i.e. [::1] -> ::1)

Via @vbmithr. Closes #8