SERVER-13760 Do not call dateToISOString if date is not formatable
SERVER-12803: Use CR/LF in log files on Windows