---
generator/generator.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generator/generator.ml b/generator/generator.ml
index 6b1eef7..4119b04 100755
--- a/generator/generator.ml
+++ b/generator/generator.ml
@@ -2648,7 +2648,7 @@ DESTROY (h)
pr " croak (\"%%s: %%s\", \"%s\", strerror
(errno));\n"
name;
if f_len_exists name then
- pr " RETVAL = newSVpvn (r, hivex_%s_len (%s));\n"
+ pr " RETVAL = newSVpvn_utf8 (r, hivex_%s_len (%s), 1);\n"
name (String.concat ", " c_params)
else
pr " RETVAL = newSVpv (r, 0);\n";
--
1.8.5.2