scripts: unicode error fix

Superseeds #107 

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Co-authored-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>