Remove linebreak character that breaks JSON.parse