Fix yet another UTF-8 trunctaion bug
Fix yet another UTF-8 trunctaion bug

(this time introduced by me)

this also fixes the bug mentioned in previous commit

thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap