s3-util: add helper functions to deal with the S-1-18 domain.