Fix computation of extracted string length
Merge pull request #15 from cgjones/fix-strlen

Fix computation of extracted string length