Solve encoding problem