Garbled characters bugfix