mwbot: better unicode handling, some fixes