remove errant characters