Text this: Fast bidirectionally-decodable arithmetic coding with chaotic redundancy and threshold control