Fixed regression: Measure table name length in bytes, not Unicode characters.
Issue #2242361 by drunken monkey: Code cleanup, fourteenth batch.