add support to other encoding, fix issue #2