Fix server crashing by adding a # header to each document.