Test whether handled character is a symbol

I remember that we had a case which required me to add this check in order to get the right output. We used pdf2json to read text from PDFs and there was a case where the text output was wrong without this. Unfortunately I cannot recall which file it was, otherwise I would have added it as test case.