PDFBOX-283: fix convertToMultiLine due to bug introduced by previous commit, as suggested by Marco Primiceri; some minor cleanup