Fix APL trailing zero suppression.

This was a part of the port to python3 that got missed... chr(0) != 0.
Add regression test for APL trailing zero bug