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

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