Hello,
It's a very strange issue, maybe you need to escape some character?. We have done some tests and everything is working as expected.
Please send to contact[at]phpdocx.com the most simple sample that illustrates your issue (the DOCX template and the script). As we need to run it please do not do external connections such as databases or web services.
Regards.