Unicode Error and type casting of Qitems