fixed errors with unicode messages