New attempt to fix encoding
Add tests on CompilerPass