fixing control characters getting added to line percentages