strip out bad characters