ipaddr: implement encoding.TextMarshaler, TextUnmarshaler interfaces