WebSubmit: fix filename bug in document manager
WebSubmit: fix filename bug in document manager

* Fix handling of filenames ending with '-', which clashed with
  the separator used in the log file of the actions to execute.

inveniosoftware/invenio,tiborsimko/invenio,tiborsimko/invenio,inveniosoftware/invenio