n_gsm: Fix support for legacy encoding