Fix bug in s3UrlBuilder that caused double encoding of chars in path segments