Fixes another unicode encode error.

This error raises when plugin tries to write unicode
lines into utf-8 output stream. Please, note, that this
part of code is not covered with unittests.