def _decode_param(string):
    """
    Convert 1 parameter value to a string so it can be processed
    by Lua.
    """
    try:
        return string.__unicode__()
    except AttributeError:
        pass
    try:
        return string.__str__()
    except (AttributeError, UnicodeEncodeError):
        pass
    return string
