Ensuring that keys with mutliple slashes are parsed properly for custom S3 endpoints