POC for adding doctype declaration in a filter