fix bug with removeUrlMultislashes() when executing in node