Fix IPv6 address parsing.

This fixes an off-by-one error when parsing IPv6 addresses, where
the last character of the address string is chopped off.

This should address issue #74.
Merge pull request #75 from jonathan-wood/master

IPv6 address parsing fix