Do not use the deprecated exception.message and properly encode when needed
Do not use the deprecated exception.message and properly encode when needed


Former-commit-id: a083f7427e505e77e544468185e3986b5741b7ca [formerly a083f7427e505e77e544468185e3986b5741b7ca [formerly a8ccb6fa3e7758bf50676365c673c28e3aa88fa3]]
Former-commit-id: 0acbd544fbfe78aaa3b58e28916133be8271769d
Former-commit-id: d60a48ac2a22b4ef55cbac1153d5209112f550ee
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine