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