I don't think this library should know anything about encodings - it should simply return a `BINARY` string and encoding is left up to the caller.

That said, if you really want to return a UTF-8 string here you can use `rb_enc_str_new(ptr, len, rb_utf8_encoding())`