Validates that a string is valid for MQTT UTF-8 encoding.
MQTT places restrictions on UTF-8 strings beyond standard UTF-8:
The string to validate
true if the string is valid for MQTT
MQTT 5.0 ยง1.5.4
Validates that a string is valid for MQTT UTF-8 encoding.
MQTT places restrictions on UTF-8 strings beyond standard UTF-8: