decode log messages to UTF8, add deprecated log function

This is more of a request for remarks than a request for inclusion.

It works, but it may be overkill, i.e., every log message is now decoded to UTF8 in its entirety, which affects speed of logging.

Do make sure you run the unit tests on your end, I'd like to see this well tested on several systems (works fine in OS X on my Mac).