remove OS bit from encoding