Found quite nasty bug.
If you include xml unsafe characters into url, resulted workbook is not readable,
this is especially true if you have query params where & is a separator.
This is due to relation target stored in the xml attribute.
following chars must be xml encoded: