fix(ShadowDomComponentFactory): Make Windows & Linux return the same response

The "\n" would be stripped on windows platforms resulting in responses
having a different content.