Fixed non-cp1251 characters handling in python wrapper
Fix encoding conversion
Revert "Fix encoding conversion"

This reverts commit 2ca5eacfa4fc54f17fb6c2b1aa5b3d11a8f98539.
Add segfault handling
Update gitignore
Apply patch
Update version