Minor fix for S3 host name parsing