[#1937] Enforce unicode ids for failures.

Problem description
----

We want to use unicode only event ids.

Changes description
----

Check that failure id is unicode and fail otherwise.

How to try and test the changes
----

reviewers @adiroiban 

Please check that the code is ok. Thanks.