fix encoding problem for roles