* add unit test for issue pointed out by @scott-r in #570 * swap order of encoder search As described by @scott-r in Magic encoder does not use previously used code pages when possible #570 Thank you!