Reports with attachments should keep the dot in the name

See #259: when creating a report from url that creates an attachment (e.g. availability.xls), the "." was removed from the name when the client wanted to download the attachment. This change fixes this.