Correct bad characters