Fix folders ban
This fixes 2 issues leading to #25555 (closed):
- The medialibrary wasn't correctly storing banned folders in database if the folder had been discovered before (Fixed in medialibrary!398 (merged))
- The banned MRL wasn't correctly encoded (fixed in this MR)
Fix #25555 (closed)