S3Api::forEachObject: fixed url returned for searches under non-directory prefixes