Improved display_* sanitation.