Fix #771: Form Population Filter incorrectly inserts XML prolog into HTML documents
merge 67a6586f8b963f5e9810506542d29a9dba6a5e33