Remove trailing / from mapping