Fixed #32 - decoding of XML header