Books don't need to have a unique name, just like in normal libraries. You can basically assume a title is the first X characters of the total Y characters of a given text. The goal of the Library of Babel isn't to be a perfect key-value store, just to create all the permutations possible within certain conditions.