Revert "Fix encoding conversion"

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