Added better duplicate detection to bulk importer, fixed a unicode error in bulk uploader