Added missing detach() to ByteVector and String.