Fixed "NameError: global name 'safe_unicode' is not defined" when saving a Batch