Revert "Fix memory leak in Encode.xs"

Because it breaks Win32

This reverts commit 27a6588a70ffa9e9000ca20f266a92f93cbf1a78.