This also fixes an issue where MIDI CI header data could contain spaces, which is not allowed according to the spec.