Ensure that the string is interpretted as the encoding in the sample