Unicode aware string truncation that given a max byte size will truncate the string to or just below that size