GSM: Fix encoding problems with GSM