This improves the implementation from cockroachdb#16602 by truncating to unicode code points and rewrites the test to actually exercise this condition; the previous test did not do so since SQL string ...