anchor.diff:      ]}.
   
   to_link(Id1, Id2) ->
  -    list_to_binary([Id1, $/, Id2]).
  +    iolist_to_binary([uri_encode(Id1), $/, uri_encode(Id2)]).
   
   json_metadata(true) ->
       true;
  
positive.code: 
  to_jiffy(Identifier, Metadata) ->
      {[
          {<<"identifier">>, Identifier},
          {<<"metdata">>, json_metadata(Metadata)}
      ]}.
  
  
negative.code: 
  to_resource(Identifier) ->
      % return resource URI for identifier
      iolist_to_binary([<<"/identifier/">>, uri_encode(Identifier)]).
  
  to_term({KeyValues}) ->
      [{Key, term_metadata(Value)} || {Key, Value} <- KeyValues].
  