Need to rewrite special chars from my old blog URL

I would like to keep inbound links … :thinking:

The issue is that my links are rejected by the isSlug control :

validator.extend('isSlug', function isSlug(str) {
    return validator.matches(str, /^[a-z0-9\-_]+$/);
});

I think I found the right place in the uncapitalise.js code. I added the following lines

if (/[!:_éèàùç]/.test(decodedURI)){
    var newPath = decodedURI.replace(/\s/g, '-')
    .replace(/[!:_]/g, '')
    .replace(/[é]/g, 'e')
    .replace(/[è]/g, 'e')
    .replace(/[à]/g, 'a')
    .replace(/[ù]/g, 'u')
    .replace(/[ç]/g, 'c')
    .replace(/[-]{2}/g, '-');

    redirectPath = (localUtils.removeOpenRedirectFromUrl((req.originalUrl || req.url).replace(pathToTest, newPath)));
    return urlService.utils.redirect301(res, redirectPath);
}
next();

Thank-you !