Make an actual copy of the string, to prevent single-character poisoning bug

This fixes http://sourceforge.net/p/textindexng/bugs/125