@staticmethod
def _rem_clean(rem):
    """Strip, transform newlines, and escape '[' in string so it's
        acceptable as a remind entry."""
    return rem.strip().replace('\n', '%_').replace('[', '["["]')
