handle ascii for last line

I did manual tests for various length / wrap / group combinations and it seems to work but extra review won't hurt