fix wrong char encoding