master: brought back removal of bad characters