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

This fixes http://sourceforge.net/p/textindexng/bugs/125
Add another test case (from http://sourceforge.net/p/textindexng/bugs/126/)
Merge pull request #1 from wosc/master

Fix single-character poisoning bug