Create an OffsetCursor from an offset value. Encodes the offset into the cursor string format.
Check if a cursor string is valid without throwing.