Fixing encoding type