Resolving Char encoding conflict