Could this be expressed as `fn as_owned_vec<'a>(s: &'a mut ~str) -> &'a mut ~[u8]` ?