def safe_str(obj, newline='\\n'):
    """This function eliminates newlines and replaces them with the explicit character newline string
    passed.  Defaults to the showing '
' explicitly"""
    return str(obj).replace('\n', newline)
