Use charAt instead of indexOf to find leading and trailing slashes in pathogen encoder.

	modified:   js/loader-pathogen-combohandler.js