Can the upload process be fixed so it creates the correct wiki-text?
As explained in the previous answer the wiki-text of the new file uploads is created directly by the server-side upload program (a php script). It can only be fixed by changing the Mediawiki code. The problem is well known, but it is unclear if there are plans to fix it (as of Nov 2009). Some recent discussions on the subject can be found here.