Decode downloaded contents.

Also add a test (the exact url depends on pulling pypa/pip-test-package#2).