Support Amazon S3 buckets with dots in their names (Fixes #404)