fixed parsing XML declaration with single quotes (fixed #169)