Use a buffered writer for html output