Use StringValuePtr to get the IV string because it can (and probably will) contain null characters when randomly generated.
Merge pull request #5 from michiels/fix-iv-with-null

Fix bug that didn't allow calling cipher.reset() with null characters