json: use base64 to encode []byte

R=rsc
CC=golang-dev
https://golang.org/cl/4160058
3 files changed