Fix "AttributeError: 'unicode' object has no attribute 'astimezone'" on export