Fixes problem that messages with unicode symbols are ignored.