INV-338 When attempting to get URLs for S3 documents i found a bug in the naming convention

Although a period is supported in the bucket name it means that ssl links to the file do not work because of multi level sub domains no longer working in modern browsers.

Signed-off-by: Robin Smith <robin.smith@clicktravel.com>