URI->_remove_url_suffix() : more efficient code

related to #2135