Fixed #23888 -- Fixed crash in File.__repr__() when name contains unicode.