Adding some robustness to remove newline characters in JSON
We've ran into a recent bug where Powershell was introducing newline characters when converting a string to pretty JSON format. In order to make runway a bit more robust, I added some code so that instead of just trimming new lines from the end, that it'll go through the string and remove new line characters altogether, since the runway server is reliant on using that new line character for parsing purposes.