Added unicode check in structureextractor