Unify newlines in encodeJS to prevent JS errors on Windows style line endings
Merge pull request #1321 from max-m/patch-3

Unify newlines in encodeJS to prevent JS errors on Windows style line endings