IPv6 fixes

Continuation of pull request #69 with some more minor fixes to the string conversion.