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)),
       case {valid_service(ServiceName),
             find_plugin_by_prefix(RestApiPrefix, Plugins)} of
           {true, false} ->
  
positive.code:             [#plugin{name = ServiceName,
                       proxy_strategy = ProxyStrategy,
                       rest_api_prefix = RestApiPrefix,
                       doc_root = get_element(<<"doc-root">>, KVs)} | Plugins];
          {true, #plugin{}} ->
              ?log_info("Pluggable UI specification for ~p not loaded, "
                        "duplicate REST API prefix ~p~n",
  
negative.code: %%%
  maybe_serve_file(RestPrefix, Plugins, Req, Path) ->
      case doc_root(RestPrefix, Plugins) of
          DocRoot when is_list(DocRoot) ->
              menelaus_util:serve_file(Req,
                                       Path,
                                       DocRoot,
  