when dumping state on SIGQUIT, build the whole string before printing to avoid stuff getting intermingled with other logging and stuff