How do I get Indesign CC to retain the document file name when exporting?
Never change it. Once you do, that name will carry through as part of the file.
You can get it to reset by exporting to .idml and opening that. See Remove minor corruption by exporting
Retrieving data ...