add decoding of various charsets
charset stuff works now (outputs UTF-8)