Use rb_str_new2() now we read the correct number of bytes into the buffer.