anchor.diff:      ProxyStrategy = decode_proxy_strategy(get_element(<<"proxy-strategy">>,
                                                         KVs)),
       RestApiPrefix = binary_to_list(get_element(<<"rest-api-prefix">>, KVs)),
  -    %% DocRoot has to be a list in order for mochiweb to be able to guess
  -    %% the MIME type.
  -    DocRoot = binary_to_list(get_element(<<"doc-root">>, KVs)),
  +    DocRoot = decode_docroot(get_element(<<"doc-root">>, KVs)),
       case {valid_service(ServiceName),
             find_plugin_by_prefix(RestApiPrefix, Plugins)} of
           {true, false} ->
  
positive.code: decode_proxy_strategy(<<"local">>) ->
      local.
  
  %%% =============================================================
  %%%
  proxy_req(RestPrefix, Path, Plugins, Req) ->
  
negative.code: maybe_serve_file(RestPrefix, Plugins, Req, Path) ->
      case doc_root(RestPrefix, Plugins) of
          DocRoot when is_list(DocRoot) ->
              serve_file(Req, Path, DocRoot);
          {multiple_roots, DocRoots} ->
              serve_file_multiple_roots(Req, Path, DocRoots);
          undefined ->
              menelaus_util:reply_not_found(Req)
      end.
  