pub fn expand_tabs(s: &str, tab_width: usize) -> StringExpand description
Expand tab characters to spaces and strip control characters.
Tabs are expanded to the next multiple of tab_width columns.
Control characters (except tab) are stripped to prevent TUI corruption.
This is essential for TUI rendering where tabs and control codes
would otherwise cause misalignment or visual glitches.