Bug 17987

When utf8decode_guessing a string, don't change it during the tests.
Merge branch 'public/7.7' into public/7.8
Merge branch 'public/7.8' into public/7.9