Revert "Fix memory leak in Encode.xs"

Because it breaks Win32

This reverts commit 6b870b8454d6444831a0115cfbb46cf20103f15b.