Decode XML buffer before parsing.

XML allows to declare document encoding and xml-parse-document doesn't
understand this declaration. To workaround the issue we get coding
system name before parsing, decode the buffer and then pass it to down
to xml-parse-region.