Create a folder with a UTF-8 character. For example, I created mine at "/home/a/Downloads/û/"
Put any image file inside. Mine is "/home/a/Downloads/û/a.jpg"
Open the new file in qimgv, delete it using qimgv.
Go to Trash. Try to restore the deleted image. You will receive the error message "The directory /home/a/Downloads/�/ does not exist anymore, so it is not possible to restore this item to its original location. You can either recreate that directory and use the restore operation again, or drag the item anywhere else to restore it."
Reproducer 2:
Create an image file with a UTF-8 character in its filename. For example, I named mine "û.jpg"
Open the new file in qimgv, delete it using qimgv.
Go to Trash. Restore the deleted image. The file is now named "�.jpg", which is the wrong name.
Kubuntu 23.04
Reproducer 1:
Reproducer 2: