You should be able to modify the slug in the hook 'filter:category.update' Which is where the slug is set.
https://github.com/NodeBB/NodeBB/blob/c9f285a883104cb87802fae8c5d321dea8154680/src/categories/update.js#L32-L36
N
niro
@niro