Trim trailing slashes in generated routes