Convert an S3 URI path to a relative "prefix" used in the S3 API.