Revert "Updated the C++ wrapper to use a different text converter function"

This reverts commit 486e6ec54069319ff3f81e4823baa07b3742bfa3.