import json


def __force_mutable(plaintext):
    """Dumps mutable objects to string to make them hashable"""
    if not isinstance(plaintext, str):
        return json.dumps(plaintext)
    return plaintext