clean out leading/trailing slashes from URL