fixed: PactRecord allocating too few memory when writing UTF encoded strings