Issue #15: html-writer: Escape at most 512 characters