Fix Issue 7942 - Appending different string types corrupts memory
Merge pull request #3966 from yebblies/issue7942

Issue 7942 - Appending different string types corrupts memory