Text this: Non-uniform Intelligent Down-sampling of Digital Curves for Efficient Compression