fixed a number of bad character issues