dns/dnsmessage: avoid string(i) where i has type int

Instead use string(r) where r has type rune.

This is in preparation for a vet warning for string(i).

Updates golang/go#32479

Change-Id: I778323fe01eeac4a1068a350c965039eef84df30
Reviewed-on: https://go-review.googlesource.com/c/net/+/220798
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Akhil Indurti <aindurti@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Toshihiro Shiino <shiino.toshihiro@gmail.com>
diff --git a/dns/dnsmessage/message.go b/dns/dnsmessage/message.go
index 4eabcae..115fdd0 100644
--- a/dns/dnsmessage/message.go
+++ b/dns/dnsmessage/message.go
@@ -2140,7 +2140,7 @@
 		return nil, off, &nestedError{name + " record", err}
 	}
 	if r == nil {
-		return nil, off, errors.New("invalid resource type: " + string(hdr.Type+'0'))
+		return nil, off, errors.New("invalid resource type: " + string(rune(hdr.Type)+'0'))
 	}
 	return r, off + int(hdr.Length), nil
 }