This patch was inspired by ad2b64f124/xpdf/CharCodeToUnicode.cc (L480-L484)
ad2b64f124/xpdf/CharCodeToUnicode.cc (L480-L484)