test that zero-copy strings are still valid when enc data goes out of scope