RT# 77144 replace bytes_substr with Unicode::Truncate