fixing bad character