Performance improvements + compressor fixes due to char bareword

I've replaced the linear search for the maximum text length that satisfies options.row with a binary search, and quoted the "char" bareword to maintain backward compatibility while fixing issues with JS compressors.