Rename handleFollowRedirect into redirect
Add spec for redirect location encoding