As stated in the boto3 docs, the type of the three parameters should not be strings, but bytes.
@berenbums,
I don't know if the documentation has changed since you cited it, but the version I'm looking at would imply that it is perfectly valid to pass in fileb://
args. However, when I do this, I still get the same error that @Tine does.