Fix unbalanced tables when cells contain ASCII characters

Fixes #2

Note: I do not know Perl. Just copy-pasted from http://stackoverflow.com/a/6163129 so I think this fixes it simply by trying it.