fixes by shz

- fix error with non-ASCII input
- output line on which exception occurred and continue
- ignore all exceptions

These fixes were needed to run the conversion successfully in some of our cases.
Therefore I would like to submit the fixes made by sh@nine.ch (shz).