Handle encoded unicode strings