remove trailing / from URI