solve encoding problem