use UTF-8 for conversion from String to bytes in the Agent