[[ Bug 8884 ]] changed to ensure copying of the string before converting back to utf16