fixing encoding problem