Strip output for line breaks and carriage returns.