Refs #19334; Changed the following:

- Fixed pylint warnings
- Added side effect notice for archive function which should be
  refactored at some point
- Moved the decoding on the archive action by using safe_unicode from
  CMFPlone.utils and clean also the message field