QuickMath class extracted
Invariant checking added to the UTF encoder
(check-)style related changes
Merge pull request #2718 from jerrinot/improvements/utf

Additional performance related to #2711