translate_text_to_tstr(): Correctly compare byte values