IPv6 address parsing fix

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.