Updated: Refactor s3 file link template add filename urlencode