UPDATE:
Together with the forum from ElevateDB I got the confirmation that it is only a problem with Lazarus/Free Pascal.
Lazarus uses UTF-8 , Delphi UTF-16 and ElevateDB uses UTF-16.
Developer of ElevateDB must do some work on their code to make it work with Lazarus.
In the meantime I will store text as base64 in the database. Makes some more work, but I have used this way in the past for other reasons.