solve encoding error