fixed a bug in normalize-filename for s3 objcts