cmd/go: Fix go get when the fetched XML uses ASCII encoding

Also, add a meaningful error message when an encoding which
can't be parsed is found.

Fixes Issue 5801.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://codereview.appspot.com/12343043

Committer: Brad Fitzpatrick <bradfitz@golang.org>