import logging
Try to workaround weird encodings
Log file command line argument
More logging
Missing content-disposition workaround