Wrap IPv6 literals with brackets. Fixes #323.