Fixes a memory leak on string translation