Ensure that escape_display_name() can't overrun a buffer.