Revert "Issue 7942 - Appending different string types corrupts memory"

This reverts commit d0f8bca7ad1eea1b8e9e2774fc84a1af7ce73815.