lt-trim: use a seen.count to avoid regex leading to eternal loops;
but getting 'Out of range:' from Compression::multibyte_write