Follow redirects when fetching XML files.

Previously file_get_contents followed redirects, restore that behavior.
See fb275c5fa257c98f85883115ae12dbf5671094e1
Merge branch 'master' into 2.2-true