small optimization (removing slashes from uri)