Ideally, the tool would do the following:

1) output tags raw, and show encoding used
2) output tags converted to current locale (utf-8 for me) from encoding specified in encoding header
3) output tags converted to current locale (utf-8 for me) from encoding specified on command line
4) change encoding header without changing tag itself

Pim