@classmethod
def encode_env_var_value(cls, obj):
    """Convert `obj` into a UTF-8 encoded binary string.

        The result of this method be used as the value of an environment variable in a subsequent
        NailgunClient execution.
        """
    return str(obj).encode()
