All the worst premature optimizations to avoid normal delphi string handling.