index: be extra careful to escape space in order to avoid uncollapsed space with white-space:pre

this can be an issue if you want to restyle the messages with display:inline