Some extra code to ensure that OUString's copy method gets correct sub-string lengths. Unlike UniString, OUString's version is more strict. Change-Id: I7daabf2ad587ff44fd6d8c66a02dbecfe519295b