fix for when sites encode the URI but don't decode it when redirecting