ipaddr: implement new standard encoding interfaces such as encoding.TextMarshaler, TextUnmarshaler