Fixed destructive data mangling while preparing text for small-caps font variation. The fix is simplisitc and can cause small caps text to be expensive in terms of memory consumption and processing time. PR: 1171