cli: escape special chars since they mess up the formatting