utils: fix for create tag from utf8

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>