MULE-7546 Set encoding property only after properties have been copied
MULE-7546 Drop unneeded/internal scopedMap for additional performance improvement
MULE-7546 Small but important bug. (Can't test directly without opening up private fields.)