Error handler
JAXB must be called on a InputStream (bytes) rather than on a Reader (characters); otherwise XML BOM is not handled correctly