Check if a given string is a valid utf-8 string.