check if string `foo` is UTF-8 encoded,foo.decode('utf8').encode('utf8')