Bugfix: convert strings correctly.
Bugfix: free V8 persistent references correctly.