#10488 related : handle encoding of string objects in a more graceful way, avoid especially quite a few unnecessary string concatenations when encoding to UTF-16
That allows to produce correct PDF even if form field have parenthesis or slashes in their names