Remove unicode type in isinstance