anchor.diff:  	    ResponseBody = wrq:append_to_response_body(mochijson:binary_encode([Failure]), ReqData),
   	    {{halt, 400}, ResponseBody, Ctx};
   	_ ->
  -	    NewLocation = io_lib:format("/~s/~s", [PathPart, Name]),
  +	    NewLocation = io_lib:format("/~s/~s", [PathPart, mochiweb_util:quote_plus(Name)]),
   	    error_logger:info_msg("NewLocation is ~p~n", [NewLocation]),
   	    Redir = wrq:do_redirect(true, wrq:set_resp_header("Location", NewLocation, ReqData)),
   	    {true, Redir, Ctx}
  
positive.code: 	undefined ->
  	    {false, ReqData, NewCtx};
  	[_|_]=Name ->
  	    BName = list_to_binary(Name),
  	    case Commit of 
  		none ->
  		    {false, ReqData, NewCtx};
  
negative.code: 	    end,
  	    <<CommitNum:160/big-unsigned-integer>> = NewCommit,
  	    NewCommitStr = lists:flatten(io_lib:format("~40.16.0b", [CommitNum])),
  	    NewLocation = io_lib:format("/~s/~s?commit=~s", [PathPart, mochiweb_util:quote_plus(Name), NewCommitStr]),
  	    error_logger:info_msg("NewLocation is ~p~n", [NewLocation]),
  	    Redir = wrq:do_redirect(true, wrq:set_resp_header("Location", NewLocation, ReqData)),
  	    {true, Redir, NewCtx};
  