Unit test for encoding parsing and conversion (Hex, Latin1, Base64, Utf8)