Fallback handling to ensure <title> element for chunked documents; also make sure output documents are UTF-8 encoded.