Fixed metadata comparison when calibre pubdate is unknown (101-01-01) and Marvin DatePublished is None.
Generate unique hashes when filename is invalid.