Modified unicode utf8 accommodation. Also added globals to var check.