It should be possible to fix this in Python 3, because raw data will be bytes, while filenames will be str. Not high priority, thoug.