HomeSoftware Heritage

browse: Ensure display of valid utf-8 contents detected as binary

Description

browse: Ensure display of valid utf-8 contents detected as binary

libmagic sometimes erroneously detects textual contents as binary while they are
valid UTF-8 encoded files, so ensure they can be displayed in swh-web/browse.

Also add encoding information in the message printed when a content can not be
displayed.

Closes T2082