this one works only when using decode utf-8, but while decoding this one, first one get decoded too which is not necessary.
so, my question how to avoid string 1 getting decoded and only string 2 gets decoded in utf-8.
is there any way we can check if string needs decoding in utf-8.