from typing import Any


def safe_string(value: Any) -> str:
    """
    Consistently converts a value to a string.

    :param value: The value to stringify.
    """

    if isinstance(value, bytes):
        return value.decode()
    return str(value)