anchor.diff:  %%     or fragment).
   %%-------------------------------------------------------------------------
   is_valid_map(#{path := Path} = Map) ->
  -    case starts_with_two_slash(Path) of
  -        true ->
  -            is_valid_map_host(Map);
  -        false ->
  -            case maps:is_key(userinfo, Map) of
  -                true ->
  -                    is_valid_map_host(Map);
  -                false ->
  -                    case maps:is_key(port, Map) of
  -                        true ->
  -                            is_valid_map_host(Map);
  -                        false ->
  -                            all_fields_valid(Map)
  -                    end
  -            end
  -    end;
  +    ((starts_with_two_slash(Path) andalso is_valid_map_host(Map))
  +     orelse
  +       (maps:is_key(userinfo, Map) andalso is_valid_map_host(Map))
  +     orelse
  +       (maps:is_key(port, Map) andalso is_valid_map_host(Map))
  +     orelse
  +     all_fields_valid(Map));
   is_valid_map(#{}) ->
       false.
   
  
positive.code: remove_dot_segments(Path) when is_binary(Path) ->
      remove_dot_segments(Path, <<>>);
  remove_dot_segments(Path) when is_list(Path) ->
      B = convert_binary(Path, utf8, utf8),
      B1 = remove_dot_segments(B, <<>>),
      convert_list(B1, utf8).
  %%
  remove_dot_segments(<<>>, Output) ->
      Output;
  
negative.code: 
  %% Form-urlencode input based on RFC 1866 [8.2.1]
  form_urlencode(Cs) when is_list(Cs) ->
      B = convert_to_binary(Cs, utf8, utf8),
      form_urlencode(B, <<>>);
  form_urlencode(Cs) ->
      form_urlencode(Cs, <<>>).
  