    @Test
    public void urlWithSpecialCharacters() throws IOException {

        String fileName = "βeta.png";
        String expected = "https://bucket.s3.eu-west-1.amazonaws.com/%CE%B2eta.png";

        AmazonS3 amazonS3Client = AmazonS3ClientBuilder.standard()
                .withRegion(Regions.EU_WEST_1)
                .build();
        S3FileSystem s3FileSystem = new S3FileSystem(null, null, amazonS3Client, "mirror");
        S3Path path = new S3Path(s3FileSystem, fileName);

        String url = amazonS3Client.getUrl("bucket", path.getKey()).toString();

        assertEquals(expected, url);
    }