fix bad trailing `/` normalization