Wrap IPv6 literals with brackets. Fixes #323.

/me looks ashamed, sec