Add backwards compatibility with non-unicode Delphi