fixing encoding issue