fix Issue #180. UnicodeDecodeError in non-latin messages