fix HTTP redirects with relative URIs. damn you, internets!