Small fixes in conversionhandler and DNNModel
This MR:
- fixes an issue originating from c++ logic character checks in the conversionhandler leading to unexpected crashes
- fixes an issue with deprecation warning originating from not using weighted metrics in keras model compile method