Update sanitizeFilename to remove newline '\r\n'