fixed char encoding error