Convert filename to UTF-8 before using it in the error message. (#146054,