Fixing encoding error