fix(privileges): make privilege names ui friendly

What if a privilege with the same name (e.g. lock) exists in another resource? This would generate a conflict.