Some improvements for the toc module.

Escape the buffer name, to prevent errors for paths with spaces.

Use linebreak in the toc buffer.