PDFBOX-2576: char parameter is never -1

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1647922 13f79535-47bb-0310-9956-ffa450edef68