language changes: char::encode_utf8 can fail when the buffer is too small.