unicode typecast fix