added utility function to deterministically generate unique filenames