Fix crash in r_utf8_decode