If a file named "Avatar.jpg" has been uploaded to the wiki, uploading a
new avatar is impossible.

This patch fixes that issue by changing the file name used internally to
something relatively random.

Patch by MediaWiki.org user Krusher.

Change-Id: Ia46d4668ab573c0d36eefe2bf948fce6d9a09e63