Don't print tabs to the message buffer; replace them with spaces.
Fix an off-by-one in translating from int to char for display.