MiscUtil: safer guess_minimum_encoding()
MiscUtil: safer guess_minimum_encoding()

* guess_minimum_encoding() should not raise exception anymore.

inveniosoftware/invenio,tiborsimko/invenio,inveniosoftware/invenio,tiborsimko/invenio