Changes so that document ids with non-ascii characters work

See merge request !1950
13 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:09:17

failed ERP5.PerformanceTest-Master

00:40:01

failed ERP5.UnitTest-Master

02:22:49

passed SlapOS.Eggs.UnitTest-Master.Python2

00:14:54

passed SlapOS.Eggs.UnitTest-Master.Python3

00:29:09

passed Wendelin.UnitTest-Master

00:50:03

passed ERP5.CodingStyleTest-Master

01:07:07

failed ERP5.PerformanceTest-Master

00:39:57

failed ERP5.UnitTest-Master

02:10:50

passed SlapOS.Eggs.UnitTest-Master.Python2

00:31:49

failed SlapOS.Eggs.UnitTest-Master.Python3

00:40:47

passed SlapOS.Eggs.UnitTest-Master.Python3

00:44:18

passed Wendelin.UnitTest-Master

00:45:44