fixing encoding error