fix error when parsing plain string to XML on IE

issue #23

Please review it.