Text this: Analysis and improvement of the CS-based fair exchange protocol