Dear Monks,
thanks a lot for your fast and more than helpful comments and proposals.
Meanwhile I solved the problem, and -- as ikegami assumed -- the $text-variable was in utf-8 while the $sepb-variable was not.
Encoding this variable together with the appropriate quoting suggested by the other monks solved the problem immediately.
So, thank you very much for your useful advices!!!
Best regards, Horst