def METHOD_NAME(self):
    if self.settings.os != "Windows" and self.options.encoding == "utf-16":
        raise ConanInvalidConfiguration(f"{self.ref} doesn't support utf-16 options on non-Windows platforms")