unicode fix for generating id