Handle trailing slash during HEAD bucket

Found with Ceph s3-tests.  References #5.