fixed logging of unicode messages