See parent bug (T246879) for the original report. (Note that the parent bug has been fixed with a work-around.)
It seems that if a local Mediawiki message includes {{urlencode|something}}, it will break the client-side message parsing.
Here's the actual code that is being called on the client-side:
mw.message( 'file-deleted-duplicate', filename ).parse()