[yaml] use BumpPtrAllocator for string copies