resolve_redirects now checks for a scheme before converting the scheme to lowercase, added tests or the scheme casing