Backport of Python 3.11's datetime.fromisoformat
