added useSSL, add urlencode for s3path, fix