added unicode check