Fix quoting of trailing slashes.