The element containing the character encoding declaration must be serialized completely within the first 1024 bytes of the document
#2230

Signed-off-by: Suki <suki@missallsunday.com>