fixing unicode check under linux