Steps to replicate the issue (include links if applicable):
- Request to Media analytics wth special characters returns 404 status code
- mediarequests/per-file/all-referers/all-agents/%2Fwikipedia%2Fcommons%2Fe%2Fef%2FAB_Tacksfabriken_och_konf-fabr._AB_Viking._Trollh%25C3%25A4ttan_FiBs_serien_-_Nordiska_museet_-_NMAx.0001508.tif/monthly/20230101/20231001
- mediarequests/per-file/all-referers/user/%2Fwikipedia%2Fcommons%2F4%2F47%2FCatedral_de_la_Encarnaci%C3%B3n%2C_M%C3%A1laga%2C_Espa%C3%B1a%2C_2023-05-19%2C_DD_37-39_HDR.jpg/daily/2023080100/2023100100
Refer to T347899 for more context
What happens?:
returns 400
What should have happened instead?:
should return 200
Software version (skip for WMF-hosted wikis like Wikipedia):
media analytics per file service