Fix newline issue in cURL scenarios. Thanks Mahmoud.