Properly encode file names from S3

Resolves #111