[WIP] Extend exception/cert handling

related to #28 
I was not able to reproduce the UTF-8 bug, yet. I am open for any opinion..