Add explicit checks for carriage returns in patches and warn about them