Fix unicode conversion, add Null logging handler

More details:

* some minor typos
* a problem when you submit unicode strings
* added logging.NullHandler(), so it does not get error messages if the module is used without a logging config
* removed some unused imports

Fixes courtesy of Daniel Heule