checking string in 2.6/7 should include unicode too.

Fixes Issue #6430