Found bug in ASCII encoding and restore missing unit tests.