fix unicode cast