Escape carriage returns for external sorting