Fixed problem with encoding in $I->wantTo()

Thanks to Artem (ostapetc)
Merge pull request #902 from vgoodvin/1.8

Fixed problem with encoding in $I->wantTo()