support for a couple of non-utf8 encodings