fix the public link format for non-DNS-conformant buckets

Noticed the problem while uploading to a bucket with a capital letter in its name. We were getting public links in the wrong form:

http://bucketName/s3.amazonaws.com/filename 

rather than the correct:

http://s3.amazonaws.com/bucketName/filename

The patch fixes it.