real fix for unicode casting