Un-duplicate code, revert code shuffling and enable charmap encoding when info.regex suggests
Delete redundant decoding table